<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>fieldset</title>
</head>
<body>
    <form>
        <fieldset>
            <legend>基本信息</legend>
            <div>
                <label for="name">姓名：</label>
                <input type="name" name="name" id="name">
            </div>
            <div>
                <span`>性别：</span>
                <select name="sex" id="sex">
                    <option value="1">男</option>
                    <option value="2">女</option>
                </select>
            </div>
            <div>
                <label for="age">年龄：</label>
                <input type="number" name="age" id="age">
            </div>
        </fieldset>
        <fieldset>
            <legend align="center">联系方式</legend>
            <div>
                <label for="tel">电话：</label>
                <input type="tel" name="tel" id="tel">
            </div>
            <div>
                <label for="email">邮箱：</label>
                <input type="email" name="email" id="email">
            </div>
        </fieldset>
    </form>
</body>
</html>